package createpattern.singleton;

/**
 * 枚举
 *
 * @author seer
 * @date 2018/2/5 15:34
 */
public enum Enum {
    ENUM_1(1), ENUM_2(2);

    public int code;

    Enum(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
